package com.cskaoyan.controller.user;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.vo.user.DashBoardVo;
import com.cskaoyan.service.user.DashBoardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Zhang Tao
 * @version 1.0.0
 * @description
 * @date since 2022-07-18 15:50
 */
@RestController
public class DashboardController {
    @Autowired
    DashBoardService dashBoardService;

    @RequestMapping("admin/dashboard")
    public BaseRespVo dashboard(){


        DashBoardVo dashBoardVo = dashBoardService.queryAllTotal();
      return BaseRespVo.ok(dashBoardVo);

    }
}
